package com.leonzhangxf.ioc.bean;


/**
 * @author leonzhangxf
 * @date 20190604
 */
public abstract class AbstractHierarchyService implements HierarchyService {

    @Override
    public void printHierarchyInfo() {
        System.out.println("abstract");
        printChildrenInfo();
    }

    /**
     * 提供给子类实现的抽象方法
     */
    public abstract void printChildrenInfo();
}
